#ifndef __WS2812_PWM_H
#define __WS2812_PWM_H

#ifdef __cplusplus
extern "C" {
#endif

#include "main.h"

#define WS2812_NUM_LEDS 5

#define WS2812_BUFFER_SIZE (WS2812_NUM_LEDS * 24)

extern uint8_t ws2812_buffer[];

int ws2812_init_pwm(void);
void ws2812_send_data_pwm(uint32_t buffersize);

void ws2812_pixel(uint16_t led_no, uint8_t r, uint8_t g, uint8_t b);
void ws2812_pixel_all(uint8_t r, uint8_t g, uint8_t b);

#ifdef __cplusplus
}
#endif

#endif /* __WS2812_PWM_H */
